﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MongoDB.Driver;
using sharp_net.Repositories.MongoDB;

namespace danreng.Application {

    public class DanrengMongoDBSettings : IMongoDBSettings {

        public MongoServerSettings ServerSettings {
            get {
                var settings = new MongoServerSettings();
                settings.Server = new MongoServerAddress("localhost");
                settings.SafeMode = SafeMode.True;
                return settings;
            }
        }

        public MongoDatabaseSettings GetDatabaseSettings(MongoServer server) {
            return new MongoDatabaseSettings(server, "danreng");
        }

        public MapTypeToCollectionNameDelegate MapTypeToCollectionName {
            get { return null; }
        }

    }
}
